//
//  GlobalDefine.h
//  iNews
//
//  Created by FZDC FZDC on 14-1-13.
//  Copyright (c) 2014年 xiao wen. All rights reserved.
//

#ifndef GlobalDefine_h
#define GlobalDefine_h

#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) 
#define SystemVersionBelowSeven ([[[UIDevice currentDevice] systemVersion] floatValue] < 7.0f)

#define DOCUMENT_PATH NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0]
#define CACHES_PATH NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES)[0]

#define RGB(R,G,B)		[UIColor colorWithRed:R/255.0f green:G/255.0f blue:B/255.0f alpha:1.0f]

//rgb颜色
#define kRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#ifndef kDeviceWidth
#define kDeviceWidth ([[UIScreen mainScreen] bounds].size.width)
#endif

#ifndef kDeviceHeight
#define kDeviceHeight ([[UIScreen mainScreen] bounds].size.height)
#endif

#ifdef DEBUG
#   define DLog(...) NSLog(__VA_ARGS__)
#else
#   define DLog(...)
#endif

#ifdef DEBUG
#   define NSLog(...) NSLog(__VA_ARGS__)
#else
#   define NSLog(...)
#endif

//#define QuestionTypeDic @{@"单选题" : @"0",\
//                          @"多选题" : @"1", \
//                          @"判断题" : @"2", \
//                          @"不定项" : @"3", \
//                          @"填空题" : @"4", \
//                          @"简答题" : @"5", \
//                        }
//#define QuestionTypeArray @[@"单选题",\
//                            @"多选题",\
//                            @"判断题",\
//                            @"不定项",\
//                            @"填空题",\
//                            @"简答题",\
//                            ]
//
//



#define QuestionTypeDic @{\
                            @"单选题" : @"0",\
                            @"多选题" : @"1", \
                            @"判断题" : @"2", \
                            @"填空题" : @"4", \
                            @"简答题" : @"5", \
}
#define QuestionTypeArray @[\
                                @"单选题",\
                                @"多选题",\
                                @"判断题",\
                                @"填空题",\
                                @"简答题",\
]


#endif
